import java.awt.GridBagConstraints; import java.awt.Insets; class GBC extends GridBagConstraints { public GBC(int gridx, int gridy) { this.gridx = gridx; this.gridx = gridy; } public GBC(int gridx, int gridy, int gridwidth, int gridheight) { this.gridwidth = gridwidth; this.gridheight = gridheight; this.gridx = gridx; this.gridx = gridy; } public GBC setAnchor(int anchor) { this.anchor = anchor; return this; } public GBC setFill(int fill) { this.fill = fill; return this; } public GBC setInsets(int top, int left, int bottom, int right) { this.insets = new Insets(top, left, bottom, right); return this; } public GBC setIpad(int ipadx, int ipady) { this.ipadx = ipadx; this.ipady = ipady; return this; } }